package org.dairy.farms.model;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * Created by IntelliJ IDEA.
 * User: gduggira
 * Date: Jun 10, 2011
 * Time: 4:55:54 PM
 */
@Entity
public class FarmExpense extends Expense {

    @ManyToOne
    @JoinColumn(name = "FARM_ID")
    private Farm farm;

    public Farm getFarm() {
        return farm;
    }

    public void setFarm(Farm farm) {
        this.farm = farm;
    }
}
